package com.yq.ylmall.enums.payment;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Project: yourlife
 * @Name: OrderStatus
 * @Author: Jack_Li
 * @Date: 2024/6/14 8:47
 */


@AllArgsConstructor
@Getter
public enum OrderStatus {
    /**
     * 未支付
     */
    NOTPAY(0, "未支付"),


    /**
     * 支付成功
     */
    SUCCESS(8, "支付成功"),

    /**
     * 已取消
     */
    CANCEL(-1, "用户已取消"),

    /**
     * 退款中
     */
    REFUND_PROCESSING(5, "退款中"),

    /**
     * 已退款
     */
    REFUND_SUCCESS(6, "已退款"),

    /**
     * 退款异常
     */
    REFUND_ABNORMAL(-2, "退款异常"),

    /**
     * 待发货
     */
    NOT_SHIPPED(1,"待发货"),

    /**
     * 已发货
     */
    SHIPPED(2, "已发货"),

    /**
     * 待收货
     */
    NOT_RECEIVE(3, "待收货"),

    /**
     * 已完成
     */
    COMPLETED(4, "已完成"),

    /**
     * 已关闭
     */
    CLOSED(7, "超时已关闭");

    /**
     * 状态
     */
    @EnumValue
    private final Integer status;

    /**
     * 类型
     */
    @JsonValue
    private final String type;

}
